<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
        <meta name="author" content="order by dede58.com"/>
		<title>我的购物车-TaoBook商城</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
		<script src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
		<script src="${pageContext.request.contextPath}/js/xiangqing.js" type="text/javascript" charset="utf-8">
		</script>
	</head>
	<body>
	<!-- start header -->
	<!--end header -->

<!-- start banner_x -->
		<div class="banner_x center">
			<a href="${pageContext.request.contextPath}/Book/selectBooks.do?showHome=showBook" target="_blank"><div class="logo fl"></div></a>
			
			<div class="wdgwc fl ml40">我的购物车</div>
			<div class="wxts fl ml20">温馨提示：产品是否购买成功，以最终下单为准哦，请尽快结算</div>
			<div class="dlzc fr">
				<ul>
					<li><a href="${pageContext.request.contextPath}/User/tologin.do" target="_blank">登录</a></li>
					<li>|</li>
					<li><a href="${pageContext.request.contextPath}/User/toReg.do" target="_blank">注册</a></li>	
				</ul>
				
			</div>
			<div class="clear"></div>
		</div>
		<div class="xiantiao"></div>
		<div class="gwcxqbj">
			<div class="gwcxd center">
				<div class="top2 center">
					<div class="sub_top fl">
						<input type="checkbox" value="quanxuan" class="quanxuan" name="allcheckbox" id="checkall" onclick="allcheck()" />全选
					</div>
					<div class="sub_top fl">商品名称</div>
					<div class="sub_top fl">单价</div>
					<div class="sub_top fl">数量</div>
					<div class="sub_top fl">小计</div>
					<div class="sub_top fr">操作</div>
					<div class="clear"></div>
				</div>
				<c:if test="${not empty sessionScope.Bookcar }">
				<c:forEach  var="c" items="${sessionScope.Bookcar}">
				<div class="content2 center">
					<div class="sub_content fl ">
						<input type="checkbox" id="check1" value="1" class="check1" name="check" onclick="selectPa()" />
					</div>
					<div class="sub_content fl"><img src="${pageContext.request.contextPath}/upload/${c.bookPhoto}" width="80"></div>
					<div class="sub_content fl ft20">${c.bookName}</div>
					<div class="sub_content fl "><span id="danjia">${c.bookPrice}</span>元</div>
					<div class="sub_content fl">
						<input id="num" class="shuliang" type="number" value="1" step="1" min="1" >
					</div>
					<div id="xiaoji" class="sub_content fl">${c.bookPrice}元</div>
					<div class="sub_content fl"><a href="" class="delete">×</a></div>
					<div class="clear"></div>
				</div>
				</c:forEach>
				</c:if>
			</div>
			<div class="jiesuandan mt20 center">
				<div class="tishi fl ml20">
					<ul>
						<li><a href="./liebiao.html">继续购物</a></li>
						<li>|</li>
						<li>共<span>2</span>件商品，已选择<span>1</span>件</li>
						<div class="clear"></div>
					</ul>
				</div>
				<div class="jiesuan fr">
					<div class="jiesuanjiage fl">合计（不含运费）：<span id="total"></span></div>
					<div class="jsanniu fr"><input class="jsan" type="button" name="jiesuan"  value="去结算" onclick="personal()"/></div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
			</div>
			
		</div>

  

	
	<!-- footer -->
	<footer class="mt20 center">			
			<div class="mt20">TAOBOOK商城|问题反馈|隐私政策|Select Region</div>
			<div>©taobook.com 京ICP证110507号 京ICP备10046444号 京公网安备11010802020134号 京网文[2014]0059-0009号</div> 
			<div>违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</div>
		</footer>

	</body>
</html>
